package com.gk.company.control
{
	import com.gk.company.control.event.UpdateUserInfoEvent;
	import com.gk.company.view.CompanyView;
	import com.gk.company.view.CompanyViewMediator;
	import com.gk.company.view.bottom.FriendStaffView;
	import com.gk.company.view.bottom.FriendStaffViewMediator;
	import com.gk.company.view.bottom.SysBtnView;
	import com.gk.company.view.bottom.SysBtnViewMediator;
	import com.gk.company.view.bottom.item.FriendItemView;
	import com.gk.company.view.bottom.item.FriendItemViewMediator;
	import com.gk.company.view.event.GoMyCompanyEvent;
	import com.gk.company.view.top.TopInfoMediator;
	import com.gk.company.view.top.TopInfoView;
	import com.gk.init.model.UserInfoModel;
	
	import org.robotlegs.mvcs.Command;

	/**
	 *公司模块启动命令 
	 * @author Nestor
	 * 
	 */	
	public class CompanyStartCommand extends Command
	{
		public function CompanyStartCommand()
		{
			super();
		}
		
		override public function execute():void
		{
			mediatorMap.mapView(CompanyView,CompanyViewMediator,CompanyView);
			mediatorMap.mapView(TopInfoView,TopInfoMediator,TopInfoView);
			mediatorMap.mapView(SysBtnView,SysBtnViewMediator,SysBtnView);
			mediatorMap.mapView(FriendStaffView,FriendStaffViewMediator,FriendStaffView);
			mediatorMap.mapView(FriendItemView,FriendItemViewMediator,FriendItemView);
			commandMap.mapEvent(GoMyCompanyEvent.BACK_TO_MY_COMPANY,BackToMyCompanyCommand,GoMyCompanyEvent);
			
			
			new CompanyView(contextView);
		}
		
	}
}